<DOCTYPE html>
<html>
<head>
    <title>聚惠家</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php foreach ($this->config->item('style_css_paths') as $css): ?>
      <link rel="stylesheet" href=<?php echo $css ?> />
    <?php endforeach ?>
    <?php foreach ($this->config->item('style_js_paths') as $js): ?>
      <script type="text/javascript" src=<?php echo $js?> ></script>
    <?php endforeach ?>
    <script type="text/javascript" src=<?php echo base_url("/scripts/logic/uihelper.js") ;?>></script>

</head>
 
<body>
    <div data-role="page" id="grouppay">
        <div data-role="header" data-tap-toggle="false" data-theme="a"  data-position="fixed">
            <a href=<?php echo site_url("grouppurchase/groupdetail?group_id=") . $group_detail['group_id'] ;?> class="ui-btn">返回</a>
            <h1>结算</h1>
        </div>
        <div role="main" class="ui-content">
            <div>
                <ul data-role="listview" data-count-theme="b" data-inset="true">
                    <li>商品： <span class="ui-li-count"><?php echo $group_detail['group_name'];?></span></li>
                    <li>单价： <span class="ui-li-count" id="groupprice" price=<?php echo $group_detail['group_price'];?>><?php echo $group_detail['group_price'];?>元</span></li>
                    <li>数量： <span class="ui-li-count" id="groupnum_show">1</span></li>
                    <li>总价：<span class="ui-li-count" id="groupsum"><?php echo $group_detail['group_price'];?>元</span></li>
                </ul>
            </div>
            <form action=<?php echo site_url('grouppurchase/newGroupBill') ;?> method="post" id="group_pay_form">
                <ul data-role="listview" data-inset="true">
                    <li class="ui-field-contain">
                            <label for="groupnum">数量:</label>
                            <input readonly type="range" name="groupnum" id="groupnum" value="1" min="1" max=<?php echo $group_detail['per_user_num'];?> data-highlight="true">
                    </li>
                    <li class="ui-field-contain">
                        <label for="name">姓名：</label>
                        <input type="text" name="name" id="group_pay_name" value=<?php echo $user_info['user_name'];?>>
                    </li>
                    <li class="ui-field-contain">
                        <label for="phone">手机：</label>
                        <input type="text" name="phone" id = "group_pay_phone" value=<?php echo $user_info['phone'];?>>
                    </li>
                    <li class="ui-field-contain">
                        <label for="mail">邮箱：</label>
                        <input type="text" name="mail" id = "group_pay_mail" value=<?php echo $user_info['user_mail'];?>>
                    </li>
                    <li class="ui-field-contain">
                        <label for="note">备注：</label>
                        <input type="text" name="note" >
                    </li>

                    <input type="hidden" name="group_id" value=<?php echo $group_detail['group_id'];?>>

                    <li class="ui-body ui-body-b">
                            <fieldset class="ui-grid-a">
                                <button type="submit" class="ui-btn ui-corner-all ui-btn-b">立即下单</button>
                            </fieldset>
                        </li>
                    </ul>
            </form>          
        </div>

        <div data-role="footer" data-tap-toggle="false" data-position="fixed">
            <div data-role="navbar">
              <ul>
                <li><a href=<?php echo site_url('welcome');?> data-icon="home">主页</a></li>
                <li><a href=<?php echo site_url("welcome/shop") ;?> data-icon="shop">店铺</a></li>
                <li><a href=<?php echo site_url('welcome/history?userid=') . $user_id;?> data-icon="check">历史订单</a></li>
                <li><a href=<?php echo site_url("welcome/info") ;?> data-icon="info">个人信息</a></li>
              </ul>
            </div>
        </div>
    </div>
</body> 
</html>

